package se.lnu.axez.physics.bullet;

public final class SphereCollisionShape extends CollisionShape {
	private final float mRadius;
	
	SphereCollisionShape(float radius) {
		this.mRadius = radius;
	}

	public float getRadius() {
		return mRadius;
	}

	@Override
	protected void createInternal(BulletFacade bulletFacade) {
		final int collisionShapeId = bulletFacade.createSphereCollisionShape(mRadius);
		setCollisionShapeId(collisionShapeId);
	}
}
